사이트 내 전체검색
PHP
[PHP] FCKeditor 설치기
로빈아빠
https://cmd.kr/php/640 URL이 복사되었습니다.

본문

작성자: 얼룩푸우(budget74@nate.com)
작성일: 2007.10.03
버   전: FCKeditor 2.4.3
개발환경: CentOS 5.x (ko_KR.UTF-8), Apache 2.x, PHP 5.x, MySQL 5.x
charset : UTF-8
다운로드: http://downloads.sourceforge.net/fckeditor/FCKeditor_2.4.3.tar.gz?modtime=1181838228&big_mirror=0

#wget http://downloads.sourceforge.net/fckeditor/FCKeditor_2.4.3.tar.gz?modtime=1181838228&big_mirror=0

#tar xvfz FCKeditor_2.4.3.tar.gz
#cd fckeditor
#vi fckeditor.js
     37 Line: this.BasePath  = '/util/fckeditor/' ; /* fckeditor 를 설치한 경로(Web 경로) */
#vi fckconfig.js
     186 Line: var _FileBrowserLanguage = 'php' ; /* asp를 php로 변경 */
     187 Line: var _QuickUploadLanguage = 'php' ; /* asp를 php로 변경 */
     참고로 94 Line 에 FCKConfig.ToolbarSets["Default"] 가 있다. 필요없는 것은 제외하자.

변경 전:
untitled1_budget74.gif
FCKConfig.ToolbarSets["Default"] = [
 ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
 ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
 ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
 ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
 '/',
 ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
 ['OrderedList','UnorderedList','-','Outdent','Indent'],
 ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 ['Link','Unlink','Anchor'],
 ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
 '/',
 ['Style','FontFormat','FontName','FontSize'],
 ['TextColor','BGColor'],
 ['FitWindow','-','About']
] ;

변경 후:
untitled2_budget74.gif
* 폼 관련 버튼을 삭제하고 FitWindow 와 About 를 첫줄로 옮겼다.

FCKConfig.ToolbarSets["Default"] = [
 ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
 ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
 ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat','-','FitWindow','-','About'],
 '/',
 ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
 ['OrderedList','UnorderedList','-','Outdent','Indent'],
 ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 ['Link','Unlink','Anchor'],
 ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
 '/',
 ['Style','FontFormat','FontName','FontSize'],
 ['TextColor','BGColor'],
] ;


#vi editor/filemanager/browser/default/connectors/php/config.php
     28 Line: $Config['Enabled'] = false ; /* 사용여부 true 로 변경 */
     32 Line: $Config['UserFilesPath'] = '/userfiles/' ; /* 파일 저장 경로 (생성 또는 변경) */

#vi editor/filemanager/upload/php/config.php
     28 Line: $Config['Enabled'] = false ; /* 사용여부 true 로 변경 */
     32 Line: $Config['UserFilesPath'] = '/userfiles/' ; /* 파일 저장 경로 (생성 또는 변경) */

#vi editor/filemanager/upload/php/upload.php
  /* 한글 파일의 문제를 해결하기 위해 urlencode 추가 */

  if ( $Config['UseFileType'] )
   $sFileUrl = $Config["UserFilesPath"] . strtolower($sType) . '/' . urlencode($sFileName) ;
  else
   $sFileUrl = $Config["UserFilesPath"] . urlencode($sFileName) ;



참고사이트
http://blog.naver.com/budget74?Redirect=Log&logNo=90022899135

댓글목록

등록된 댓글이 없습니다.

PHP
871 (7/18P)

Search

Copyright © Cmd 명령어 18.216.254.96